package cn.smile.service.common;

import org.springframework.stereotype.Service;

import cn.smile.dao.common.SiteSettingDao;
import cn.smile.entity.common.SiteSetting;

import javax.annotation.Resource;

/**
 * 网站设置service
 */
@Service
public class SiteSettingService {

    @Resource
    private SiteSettingDao siteSettingDao;

    /**
     * 新闻信息添加/修改（id不为空则为修改）
     */
    public SiteSetting save(SiteSetting siteSetting) {
        return siteSettingDao.save(siteSetting);
    }

    /**
     * 根据id查询
     */
    public SiteSetting find() {
        return siteSettingDao.find();
    }

}
